<!--退货款详情-->
<template>
  <div>
    <a-descriptions bordered v-if='loaded' size='small' :column='2' title='认款单信息'>
      <a-descriptions-item label='回款日期'>
        {{ formData.parentAmountDate }}
      </a-descriptions-item>
      <a-descriptions-item label='认款单号'>
        {{ formData.parentPaymentNo }}
      </a-descriptions-item>
      <a-descriptions-item label='部门名称'>
        {{ formData.parentDeptName }}
      </a-descriptions-item>
      <a-descriptions-item label='单位名称'>
        {{ formData.customName }}
      </a-descriptions-item>
      <a-descriptions-item label='收款金额'>
        {{ formData.parentAmount }}
      </a-descriptions-item>
      <a-descriptions-item label='收款银行'>
        {{ formData.parentBankName }}
      </a-descriptions-item>
      <a-descriptions-item label='收款账户'>
        {{ formData.parentBankNo }}
      </a-descriptions-item>
    </a-descriptions>
    
    <a-descriptions bordered v-if='loaded' size='small' :column='2' title='退款单信息' style='margin-top: 5px'>
      <a-descriptions-item label='申请日期'>
        {{ formData.amountDate }}
      </a-descriptions-item>
      <a-descriptions-item label='申请部门'>
        {{ formData.applyDeptName }}
      </a-descriptions-item>
      <a-descriptions-item label='退款单号'>
        {{ formData.paymentNo }}
      </a-descriptions-item>
      <a-descriptions-item label='单位名称'>
        {{ formData.customName }}
      </a-descriptions-item>
      <a-descriptions-item label='收款银行'>
        {{ formData.bankName }}
      </a-descriptions-item>
      <a-descriptions-item label='收款账户'>
        {{ formData.bankNo }}
      </a-descriptions-item>
      <a-descriptions-item label='附件'  :span="2">
        <f-images :value='formData.paymentImage'></f-images>
      </a-descriptions-item>
    </a-descriptions>

  </div>
</template>
<script>
import api from "../../../js/api"


export default {
  name: "RefundHkDetails",
  components: {},
  data() {
    let me = this
    //操作按钮
    let operator = []
    return {
      api: Object.assign(api, this.api),
      loaded: false,
      formData: {
        paymentImage:[]
      }
    }
  },
  created() {
  },
  methods: {
    setData(data) {
      if (data && data.paymentId) {
        this.http.get(this, {
          url: this.api.payment.get,
          params: {
            paymentId: data.paymentId,
            handlerName: "hyRefundHkGetHandler"
          },
          success: function(me, data) {
            me.formData = data
            me.loaded = true
          }
        })
      }
    },

    /**
     * 刷新列表
     */
    onLoad() {
      this.$emit("changeTab")
    }
  }
}
</script>